﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="student_Default" MaintainScrollPositionOnPostback="true" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxToolKit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>Student Profile</title>

    <script src="../include/js/form.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyContentTop" runat="Server">
    <h1>
        Student Profile</h1>
    <h3>
        Setting up student profile.</h3>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="bodyContent" runat="Server">
    <div class="elements_inner_wrapper">
        <div id="contentBody">
            <div class="section">
                <div class="seperator">
                </div>
                <fieldset class="formouter">
                    <table cellpadding="3" cellspacing="3" width="100%">
                        <tr>
                            <td colspan="2">
                                <div class="row_curved" id="divSchoolList" runat="server" title="Example:UCSM, MIT, YTU">
                                    <label for="<%=ddlSchoolList.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Selected School Name" ID="Label2" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList AutoPostBack="True" runat="server" ID="ddlSchoolList" OnSelectedIndexChanged="ddlSchoolList_SelectedIndexChanged"
                                                DataSourceID="ObjectDataSource1" DataTextField="ListText" DataValueField="ListValue" />
                                            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="SIS.ENT.Listing"
                                                DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}" SelectMethod="GetList"
                                                TypeName="SIS.BLL.ListingManager" UpdateMethod="Save">
                                                <SelectParameters>
                                                    <asp:Parameter DefaultValue="1" Name="ListType" Type="Int32" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                            <br />
                                            <br />
                                            <asp:Button runat="server" ID="btnAddNewStudent" Text="Add New Student" OnClick="btnAddNewStudent_Click" />
                                            &nbsp;&nbsp;<asp:Button runat="server" ID="btnViewStudentList" Text="View List" OnClick="btnViewStudentList_Click" />
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" valign="top">
                                <div>
                                    <asp:Label runat="server" ID="lblTopMessage" Text="" Font-Bold="true" Font-Size="Large"
                                        ForeColor="Red"></asp:Label>
                                    <asp:ValidationSummary ID="vsStudentProfile" runat="server" ValidationGroup="StudentProfile"
                                        ShowSummary="True" HeaderText="Please complete all highlighted fields of the form. Thank you."
                                        CssClass="errorSummary" />
                                    <div id="Div3" runat="server" visible="false">
                                        SchoolKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblSchoolKey" /><br />
                                        lblUserAccountKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblUserAccountKey" /><br />
                                        lblUserAuthCode:<asp:Label Visible="true" runat="server" Text="-1" ID="lblUserAuthCode" /><br />
                                        lblStudentProfileKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblStudentProfileKey" /><br />
                                        lblStudentContactKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblStudentContactKey" /><br />
                                        lblStudentAddressKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblStudentRAddressKey" /><br />
                                        lblStudentAddressKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblStudentPAddressKey" /><br />
                                        lblStudentAddressKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblStudentMAddressKey" /><br />
                                        lblGuardianAccountKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblGuardianAccountKey" /><br />
                                        lblGuardianAccountAuthCode:<asp:Label Visible="true" runat="server" Text="-1" ID="lblGuardianAccountAuthCode" /><br />
                                        lblGuardinProfileKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblGuardianProfileKey" /><br />
                                        lblGuardianContactKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblGuardianContactKey" /><br />
                                        lblGuardianAddressKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblGuardianAddressKey" /><br />
                                        lblStudentGuardianRelationTypeKey:<asp:Label Visible="true" runat="server" Text="-1"
                                            ID="lblStudentGuardianRelationTypeKey" />
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <AjaxToolKit:TabContainer ID="tbcEntry" runat="server" Visible="true">
                        <AjaxToolKit:TabPanel ID="tbpInfo" runat="server" HeaderText="Information" CssClass="menuHeader"
                            Visible="true">
                            <HeaderTemplate>
                                <asp:Label ID="lblInfoHeader" CssClass="menuHeader" runat="server">Names And Contacts</asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table cellpadding="3" cellspacing="3" width="100%">
                                    <tr>
                                        <td valign="top">
                                            <div class="row_curved" id="divStudentPhoto" visible="false" runat="server">
                                                <label for="<%=imgCurrentStudentPhoto.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Photo" ID="Label25" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:HyperLink ID="hplCurrentStudentPhoto" Target="_blank" runat="server" ToolTip="Click to View Original">
                                                            <asp:Image runat="server" ID="imgCurrentStudentPhoto" />
                                                        </asp:HyperLink>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divFirstName" runat="server" title="Example:Mg Mg, Kyaw Kyaw, Yu Yu">
                                                <label for="<%=txtFirstName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="First Name" ID="lblFirstName" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="270px" ID="txtFirstName" MaxLength="50" runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvFirstName" ValidationGroup="StudentProfile" ControlToValidate="txtFirstName"
                                                            runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divLastName" runat="server">
                                                <label for="<%=txtLastName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Last Name (SurName)" ID="lblLastName" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="270px" ID="txtLastName" MaxLength="255" runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvLastName" ValidationGroup="StudentProfile" ControlToValidate="txtLastName"
                                                            runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divNickName" runat="server">
                                                <label for="<%=txtNickName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Nick/Prefered Name" ID="lblNickName" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="270px" ID="txtNickName" MaxLength="240" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divOtherName" runat="server">
                                                <label for="<%=txtOtherName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Other Name" ID="lblOtherName" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="270px" ID="txtOtherName" MaxLength="240" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divGender" runat="server">
                                                <label for="<%=ddlDOBYear.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Gender" ID="Label20" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlGender">
                                                            <asp:ListItem Text="Male" Value="M"></asp:ListItem>
                                                            <asp:ListItem Text="Female" Value="F"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divDOB" runat="server">
                                                <label for="<%=ddlDOBYear.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="DOB" ID="Label1" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlDOBDay">
                                                            <asp:ListItem Text="dd" Value="-1"></asp:ListItem>
                                                        </asp:DropDownList>
                                                        <asp:DropDownList runat="server" ID="ddlDOBMonth">
                                                            <asp:ListItem Text="mm" Value="-1"></asp:ListItem>
                                                        </asp:DropDownList>
                                                        <asp:DropDownList runat="server" ID="ddlDOBYear">
                                                            <asp:ListItem Text="yy" Value="-1"></asp:ListItem>
                                                        </asp:DropDownList>
                                                        <asp:CustomValidator ID="csvStudentDOB" ValidationGroup="StudentProfile" OnServerValidate="StudentDOB_ServerSideValidation"
                                                            ControlToValidate="ddlDOBYear" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage=""></asp:CustomValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divNRICNumber" runat="server">
                                                <label for="<%=txtNRICNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="NRIC Number" ID="lblNRICNumber" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ID="txtNRICNumber" Width="270px" runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvNRICNumber" ValidationGroup="StudentProfile" ControlToValidate="txtNRICNumber"
                                                            runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                        <td valign="bottom">
                                            <div class="row_curved" id="divMobileNumber" runat="server">
                                                <label for="<%=txtMobileNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Mobile" ID="lblMobileNumber" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="220px" ID="txtMobileNumber" MaxLength="50" runat="server" />
                                                        <asp:CustomValidator ID="csvStudentContactNumbers" OnServerValidate="StudentContactNumbers_ServerSideValidate"
                                                            ValidationGroup="StudentProfile" ControlToValidate="txtMobileNumber" runat="server"
                                                            CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:CustomValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divHomePhoneNumber" runat="server">
                                                <label for="<%=txtHomePhoneNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Home Phone" ID="lblHomePhoneNumber" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="220px" ID="txtHomePhoneNumber" MaxLength="50" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div26" runat="server">
                                                <label for="<%=txtFaxNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Fax:" ID="Label52" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="220px" ID="txtFaxNumber" MaxLength="50" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div27" runat="server">
                                                <label for="<%=txtOfficePhoneNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Office:" ID="Label53" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="220px" ID="txtOfficePhoneNumber" MaxLength="50" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divOtherContactNumber" runat="server">
                                                <label for="<%=txtOtherContactNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Other Contact" ID="lblOtherContactNumber" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="220px" ID="txtOtherContactNumber" MaxLength="50" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divEmailAddress" runat="server" title="Example:example@domain.com">
                                                <label for="<%=txtEmailAddress.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Email Address(es)" ID="lblEmailAddressCaption" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="270px" ID="txtEmailAddress" MaxLength="255" runat="server" />
                                                        <asp:RegularExpressionValidator ID="revEmailAddress" ValidationGroup="StudentProfile"
                                                            ControlToValidate="txtEmailAddress" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="<br />Invalid email address format." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divWebsiteUrl" runat="server" title="Example:http://www.example.com">
                                                <label for="<%=txtWebsiteUrl.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Website URL" ID="lblWebsiteUrl" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="240px" Text="" ID="txtWebsiteUrl" MaxLength="255" runat="server"></asp:TextBox>
                                                        <asp:RegularExpressionValidator ID="revWebsiteUrl" ValidationGroup="StudentProfile"
                                                            ControlToValidate="txtWebsiteUrl" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="<br />Invalid HTTP URL format." Text="" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                        <tr>
                                            <td>
                                                <h3>
                                                    Remark for Disablility</h3>
                                                <div class="row_curved" id="divDisablityRemark" runat="server">
                                                    <label for="<%=txtDisablityRemark.ClientID%>" class="mand_red">
                                                        <asp:Label runat="server" Text="Remark" ID="lblDisablityRemark" /></label>
                                                    <div class="field">
                                                        <span class="indicator">
                                                            <asp:TextBox TextMode="MultiLine" Width="270px" Rows="5" Columns="50" ID="txtDisablityRemark"
                                                                MaxLength="255" runat="server" />
                                                        </span>
                                                    </div>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                            </td>
                                            <td>
                                                <h3>
                                                    Other Remark</h3>
                                                <div class="row_curved" id="divRemark" runat="server">
                                                    <label for="<%=txtRemark.ClientID%>" class="mand_red">
                                                        <asp:Label runat="server" Text="Remark" ID="lblRemark" /></label>
                                                    <div class="field">
                                                        <span class="indicator">
                                                            <asp:TextBox TextMode="MultiLine" Width="270px" Rows="5" Columns="50" ID="txtRemark"
                                                                MaxLength="255" runat="server" />
                                                        </span>
                                                    </div>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                        <AjaxToolKit:TabPanel ID="TabPanel1" runat="server" HeaderText="Contact" CssClass="menuHeader"
                            Visible="true">
                            <HeaderTemplate>
                                <asp:Label ID="Label22" CssClass="menuHeader" runat="server">Addresses</asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table cellpadding="3" cellspacing="3" width="100%">
                                    <tr>
                                        <td>
                                            <h3>
                                                Resident Address</h3>
                                            <div class="row_curved" id="divUnitNo" runat="server">
                                                <label for="<%=txtUnitNo.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="UnitNo" ID="lblUnitNo" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ID="txtUnitNo" Width="120px" MaxLength="20" runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvUnitNo" ValidationGroup="StudentProfile" ControlToValidate="txtUnitNo"
                                                            runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divStreetName" runat="server">
                                                <label for="<%=txtStreetName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Street Name" ID="lblStreetName" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ID="txtStreetName" Width="270px" MaxLength="255" runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvStreetName" ValidationGroup="StudentProfile" ControlToValidate="txtStreetName"
                                                            runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <asp:UpdatePanel runat="server" ID="uplAddress" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <div class="row_curved" id="divCountry" runat="server">
                                                        <label for="<%=ddlCountry.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="Country" ID="lblCountry" /></label>
                                                        <div class="field">
                                                            <span class="indicator">
                                                                <asp:DropDownList Width="100px" runat="server" ID="ddlCountry" AutoPostBack="true"
                                                                    OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvCountry" ValidationGroup="StudentProfile" ControlToValidate="ddlCountry"
                                                                    InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                            <label for="<%=ddlDistrict.ClientID%>" style="width: 40px" class="mand_red">
                                                                <asp:Label runat="server" Text="State/Div" ID="lblDistrict" /></label>
                                                            <span class="indicator">
                                                                <asp:DropDownList Width="100px" runat="server" ID="ddlDistrict" AutoPostBack="true"
                                                                    OnSelectedIndexChanged="ddlDistrict_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvDistrict" ValidationGroup="StudentProfile" ControlToValidate="ddlDistrict"
                                                                    InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                    <div class="row_curved" id="divCity" runat="server">
                                                        <label for="<%=ddlCity.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="City Name" ID="lblCity" /></label>
                                                        <div class="field">
                                                            <span class="indicator">
                                                                <asp:DropDownList Width="100px" runat="server" ID="ddlCity">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvCity" ValidationGroup="StudentProfile" ControlToValidate="ddlCity"
                                                                    InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                            <label for="<%=txtPostCode.ClientID%>" style="width: 40px" class="mand_red">
                                                                <asp:Label runat="server" Text="Postal" ID="lblPostCode" /></label>
                                                            <span class="indicator">
                                                                <asp:TextBox Width="100px" ID="txtPostCode" MaxLength="50" runat="server" />
                                                                <asp:RequiredFieldValidator ID="rfvPostCode" ValidationGroup="StudentProfile" ControlToValidate="txtPostCode"
                                                                    runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <h3>
                                                Permanent/Contact Address</h3>
                                            <asp:UpdatePanel runat="server" ID="uplPAddress" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <asp:CheckBox runat="server" ID="chkPSameAsResident" Text="Same as Resident Address"
                                                        Checked="false" OnCheckedChanged="chkPSameAsResident_CheckedChanged" AutoPostBack="true" />
                                                    <div class="row_curved" id="divPUnitNo" runat="server">
                                                        <label for="<%=txtPUnitNo.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="UnitNo" ID="Label3" /></label>
                                                        <div class="field">
                                                            <span class="indicator">
                                                                <asp:TextBox ID="txtPUnitNo" Width="120px" MaxLength="20" runat="server" />
                                                                <asp:RequiredFieldValidator ID="rfvPUnitNo" ValidationGroup="StudentProfile" ControlToValidate="txtUnitNo"
                                                                    runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                    <div class="row_curved" id="divPStreetName" runat="server">
                                                        <label for="<%=txtPStreetName.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="Street Name" ID="Label5" /></label>
                                                        <div class="field">
                                                            <span class="indicator">
                                                                <asp:TextBox ID="txtPStreetName" Width="270px" MaxLength="255" runat="server" />
                                                                <asp:RequiredFieldValidator ID="rfvPStreetName" ValidationGroup="StudentProfile"
                                                                    ControlToValidate="txtPStreetName" runat="server" CssClass="validationErrorControl"
                                                                    Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                    <div class="row_curved" id="divPCountry" runat="server">
                                                        <label for="<%=ddlPCountry.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="Country" ID="Label6" /></label>
                                                        <div class="field">
                                                            <span class="indicator">
                                                                <asp:DropDownList Width="100px" runat="server" ID="ddlPCountry" AutoPostBack="true"
                                                                    OnSelectedIndexChanged="ddlPCountry_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvPCountry" ValidationGroup="StudentProfile" ControlToValidate="ddlPCountry"
                                                                    InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                            <label for="<%=ddlPDistrict.ClientID%>" style="width: 40px" class="mand_red">
                                                                <asp:Label runat="server" Text="State/Div" ID="Label7" /></label>
                                                            <span class="indicator">
                                                                <asp:DropDownList Width="100px" runat="server" ID="ddlPDistrict" AutoPostBack="true"
                                                                    OnSelectedIndexChanged="ddlPDistrict_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvPDistrict" ValidationGroup="StudentProfile" ControlToValidate="ddlPDistrict"
                                                                    InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                    <div class="row_curved" id="divPCity" runat="server">
                                                        <label for="<%=ddlPCity.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="City Name" ID="Label8" /></label>
                                                        <div class="field">
                                                            <span class="indicator">
                                                                <asp:DropDownList Width="100px" runat="server" ID="ddlPCity">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvPCity" ValidationGroup="StudentProfile" ControlToValidate="ddlPCity"
                                                                    InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                            <label for="<%=txtPPostCode.ClientID%>" style="width: 40px" class="mand_red">
                                                                <asp:Label runat="server" Text="Postal" ID="Label9" /></label>
                                                            <span class="indicator">
                                                                <asp:TextBox Width="100px" ID="txtPPostCode" MaxLength="50" runat="server" />
                                                                <asp:RequiredFieldValidator ID="rfvPPostCode" ValidationGroup="StudentProfile" ControlToValidate="txtPPostCode"
                                                                    runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <h3>
                                                Mailing Address</h3>
                                            <asp:UpdatePanel runat="server" ID="uplMAddress" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <asp:CheckBox runat="server" ID="chkMSameAsResident" Text="Same as Resident Address"
                                                        Checked="false" OnCheckedChanged="chkMSameAsResident_CheckedChanged" AutoPostBack="true" />
                                                    <div class="row_curved" id="divMUnitNo" runat="server">
                                                        <label for="<%=txtMUnitNo.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="UnitNo" ID="Label10" /></label>
                                                        <div class="field">
                                                            <span class="indicator">
                                                                <asp:TextBox ID="txtMUnitNo" Width="120px" MaxLength="20" runat="server" />
                                                                <asp:RequiredFieldValidator ID="rfvMUnitNo" ValidationGroup="StudentProfile" ControlToValidate="txtMUnitNo"
                                                                    runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                    <div class="row_curved" id="divMStreetName" runat="server">
                                                        <label for="<%=txtMStreetName.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="Street Name" ID="Label11" /></label>
                                                        <div class="field">
                                                            <span class="indicator">
                                                                <asp:TextBox ID="txtMStreetName" Width="270px" MaxLength="255" runat="server" />
                                                                <asp:RequiredFieldValidator ID="rfvMStreetName" ValidationGroup="StudentProfile"
                                                                    ControlToValidate="txtMStreetName" runat="server" CssClass="validationErrorControl"
                                                                    Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                    <div class="row_curved" id="divMCountry" runat="server">
                                                        <label for="<%=ddlMCountry.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="Country" ID="Label12" /></label>
                                                        <div class="field">
                                                            <span class="indicator">
                                                                <asp:DropDownList Width="100px" runat="server" ID="ddlMCountry" AutoPostBack="true"
                                                                    OnSelectedIndexChanged="ddlMCountry_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvMCountry" ValidationGroup="StudentProfile" ControlToValidate="ddlMCountry"
                                                                    InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                            <label for="<%=ddlMDistrict.ClientID%>" style="width: 40px" class="mand_red">
                                                                <asp:Label runat="server" Text="State/Div" ID="Label13" /></label>
                                                            <span class="indicator">
                                                                <asp:DropDownList Width="100px" runat="server" ID="ddlMDistrict" AutoPostBack="true"
                                                                    OnSelectedIndexChanged="ddlMDistrict_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvMDistrict" ValidationGroup="StudentProfile" ControlToValidate="ddlMDistrict"
                                                                    InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                    <div class="row_curved" id="divMCity" runat="server">
                                                        <label for="<%=ddlMCity.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="City Name" ID="Label14" /></label>
                                                        <div class="field">
                                                            <span class="indicator">
                                                                <asp:DropDownList Width="100px" runat="server" ID="ddlMCity">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvMCity" ValidationGroup="StudentProfile" ControlToValidate="ddlMCity"
                                                                    InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                            <label for="<%=txtMPostCode.ClientID%>" style="width: 40px" class="mand_red">
                                                                <asp:Label runat="server" Text="Postal" ID="Label15" /></label>
                                                            <span class="indicator">
                                                                <asp:TextBox Width="100px" ID="txtMPostCode" MaxLength="50" runat="server" />
                                                                <asp:RequiredFieldValidator ID="rfvMPostCode" ValidationGroup="StudentProfile" ControlToValidate="txtMPostCode"
                                                                    runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                        <AjaxToolKit:TabPanel ID="TabPanel2" runat="server" HeaderText="Contact" CssClass="menuHeader"
                            Visible="true">
                            <HeaderTemplate>
                                <asp:Label ID="Label23" CssClass="menuHeader" runat="server">Main Family/Guardian</asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table cellpadding="3" cellspacing="3" width="100%">
                                    <tr>
                                        <td valign="top">
                                            <h3>
                                                Profile</h3>
                                            <div class="row_curved" id="divGuardianFirstName" runat="server">
                                                <label for="<%=txtGuardianFirstName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="First Name" ID="lblGuardianFirstName" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="First Name" Width="220px" ID="txtGuardianFirstName" MaxLength="120"
                                                            runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divGuardianLastName" runat="server">
                                                <label for="<%=txtGuardianLastName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Last Name" ID="lblGuardianLastName" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Last Name (SurName)" Width="220px" ID="txtGuardianLastName"
                                                            MaxLength="120" runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvGuardianLastName" ValidationGroup="StudentProfile"
                                                            ControlToValidate="txtGuardianLastName" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divGuardianRelationshipType" runat="server">
                                                <label for="<%=ddlGuardianRelationshipType.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Relationship Type" ID="lblGuardianRelationshipType" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList Font-Size="Small" Width="200px" runat="server" ID="ddlGuardianRelationshipType">
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator ID="rfvGuardianRelationshipType" ValidationGroup="StudentProfile"
                                                            ControlToValidate="ddlGuardianRelationshipType" InitialValue="-1" runat="server"
                                                            CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divGuardianDOB" runat="server">
                                                <label for="<%=ddlGuardianDOBYear.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="DOB" ID="lblGuardianDOB" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlGuardianDOBDay">
                                                            <asp:ListItem Text="dd" Value="-1"></asp:ListItem>
                                                        </asp:DropDownList>
                                                        <asp:DropDownList runat="server" ID="ddlGuardianDOBMonth">
                                                            <asp:ListItem Text="mm" Value="-1"></asp:ListItem>
                                                        </asp:DropDownList>
                                                        <asp:DropDownList runat="server" ID="ddlGuardianDOBYear">
                                                            <asp:ListItem Text="yy" Value="-1"></asp:ListItem>
                                                        </asp:DropDownList>
                                                        <asp:CustomValidator ID="csvGuardianDOB" ValidationGroup="StudentProfile" OnServerValidate="GuardianDOB_ServerSideValidation"
                                                            ControlToValidate="ddlGuardianDOBYear" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage=""></asp:CustomValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <h3>
                                                Contact</h3>
                                            <div class="row_curved" id="divGuardianMobileNumber" runat="server">
                                                <label for="<%=txtGuardianMobileNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Mobile" ID="lblGuardianContact" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Mobile" Width="270px" ID="txtGuardianMobileNumber" MaxLength="50"
                                                            runat="server" />
                                                        <asp:CustomValidator ID="csvGuardianContactNumbers" OnServerValidate="GuardianContactNumbers_ServerSideValidate"
                                                            ValidationGroup="StudentProfile" ControlToValidate="txtGuardianMobileNumber"
                                                            runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:CustomValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divGuardianHomePhoneNumber" runat="server">
                                                <label for="<%=txtGuardianHomePhoneNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Home Line" ID="Label4" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Home" Width="270px" ID="txtGuardianHomePhoneNumber" MaxLength="50"
                                                            runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div32" runat="server">
                                                <label for="<%=txtGuardianOfficePhoneNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Office Line" ID="Label58" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Office" Width="270px" ID="txtGuardianOfficePhoneNumber" MaxLength="50"
                                                            runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div1" runat="server">
                                                <label for="<%=txtGuardianOtherContactNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Other Contact" ID="Label16" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="220px" ID="txtGuardianOtherContactNumber" MaxLength="50" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div2" runat="server" title="Example:example@domain.com">
                                                <label for="<%=txtGuardianEmailAddress.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Email Address(es)" ID="Label17" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="270px" ID="txtGuardianEmailAddress" MaxLength="255" runat="server" />
                                                        <asp:RegularExpressionValidator ID="revGuardianEmailAddress" ValidationGroup="StudentProfile"
                                                            ControlToValidate="txtGuardianEmailAddress" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="<br />Invalid email address format." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                        <td valign="top">
                                            <h3>
                                                Resident Address</h3>
                                            <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <asp:CheckBox runat="server" ID="chkGuardianSameAsResident" Text="Same as Student's Resident Address"
                                                        Checked="false" OnCheckedChanged="chkGuardianSameAsResident_CheckedChanged" AutoPostBack="true" />
                                                    <div class="row_curved" id="divGuardianAddressUnitNo" runat="server">
                                                        <label for="<%=txtGuardianAddressUnitNo.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="Unit No." ID="lblGuradianAddress" /></label>
                                                        <div class="field">
                                                            <span class="indicator">
                                                                <asp:TextBox ToolTip="Unit No" Width="160px" ID="txtGuardianAddressUnitNo" MaxLength="50"
                                                                    runat="server" />
                                                                <asp:RequiredFieldValidator ID="rfvGuardianAddressUnitNo" ValidationGroup="StudentProfile"
                                                                    ControlToValidate="txtGuardianAddressUnitNo" runat="server" CssClass="validationErrorControl"
                                                                    Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                    <div class="row_curved" id="divGuardianAddressStreet" runat="server">
                                                        <label for="<%=txtGuardianAddressStreet.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="Street" ID="lbltxtGuardianAddressStreet" /></label>
                                                        <div class="field">
                                                            <span class="indicator">
                                                                <asp:TextBox ToolTip="Street" Width="270px" ID="txtGuardianAddressStreet" MaxLength="250"
                                                                    runat="server" />
                                                                <asp:RequiredFieldValidator ID="rfvGuardianAddressStreet" ValidationGroup="StudentProfile"
                                                                    ControlToValidate="txtGuardianAddressStreet" runat="server" CssClass="validationErrorControl"
                                                                    Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                    <div class="row_curved" id="divGuardianAddressCountry" runat="server">
                                                        <label for="<%=ddlGuardianAddressCountry.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="Country" ID="lblGuardianAddressCountry" /></label>
                                                        <div class="field">
                                                            <span class="indicator">
                                                                <asp:DropDownList runat="server" ID="ddlGuardianAddressCountry" AutoPostBack="true"
                                                                    OnSelectedIndexChanged="ddlGuardianAddressCountry_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvGuardianAddressCountry" ValidationGroup="StudentProfile"
                                                                    InitialValue="-1" ControlToValidate="ddlGuardianAddressCountry" runat="server"
                                                                    CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                            <label for="<%=ddlMDistrict.ClientID%>" style="width: 40px" class="mand_red">
                                                                <asp:Label runat="server" Text="State/Div" ID="Label19" /></label>
                                                            <span class="indicator">
                                                                <asp:DropDownList Width="100px" runat="server" ID="ddlGuardianAddressDistrict" AutoPostBack="true"
                                                                    OnSelectedIndexChanged="ddlGuardianAddressDistrict_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvGuardianAddressDistrict" ValidationGroup="StudentProfile"
                                                                    ControlToValidate="ddlGuardianAddressDistrict" InitialValue="-1" runat="server"
                                                                    CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                    <div class="row_curved" id="divGuardianAddressCity" runat="server">
                                                        <label for="<%=ddlGuardianAddressCity.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="City" ID="lblGuardianAddressPostal" /></label>
                                                        <div class="field">
                                                            <span class="indicator">
                                                                <asp:DropDownList Width="100px" runat="server" ID="ddlGuardianAddressCity">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvGuardianAddressCity" ValidationGroup="StudentProfile"
                                                                    ControlToValidate="ddlGuardianAddressCity" InitialValue="-1" runat="server" CssClass="validationErrorControl"
                                                                    Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                            <label for="<%=txtGuardianAddressPostal.ClientID%>" style="width: 40px;" class="mand_red">
                                                                <asp:Label runat="server" Text="Postal" ID="Label18" /></label>
                                                            <span class="indicator">
                                                                <asp:TextBox ToolTip="Postal Code" Width="120px" ID="txtGuardianAddressPostal" MaxLength="50"
                                                                    runat="server" />
                                                                <asp:RequiredFieldValidator ID="rfvGuardianAddressPostal" ValidationGroup="StudentProfile"
                                                                    ControlToValidate="txtGuardianAddressPostal" runat="server" CssClass="validationErrorControl"
                                                                    Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </span>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                            <h3>
                                                Job or Business</h3>
                                            <div class="row_curved" id="div28" runat="server">
                                                <label for="<%=txtGuardianHighestEducation.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Highest Education" ID="Label54" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="220px" ID="txtGuardianHighestEducation" MaxLength="255" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div29" runat="server">
                                                <label for="<%=txtGuardianOccupation.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Occupation" ID="Label55" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="220px" ID="txtGuardianOccupation" MaxLength="255" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div30" runat="server">
                                                <label for="<%=txtGuardianCompanyName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Company Name" ID="Label56" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="220px" ID="txtGuardianCompanyName" MaxLength="255" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div31" runat="server">
                                                <label for="<%=txtGuardianDesignation.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Designation" ID="Label57" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="220px" ID="txtGuardianDesignation" MaxLength="255" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:HyperLink runat="server" ID="hplGuardianDetail" Visible="false" Text="Add More" />
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                        <AjaxToolKit:TabPanel ID="TabPanel3" runat="server" HeaderText="Contact" CssClass="menuHeader"
                            Visible="true">
                            <HeaderTemplate>
                                <asp:Label ID="Label24" CssClass="menuHeader" runat="server">Other Details</asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table cellpadding="3" cellspacing="3" width="100%">
                                    <tr>
                                        <td>
                                            <div class="row_curved" id="divPlaceOfBirth" runat="server">
                                                <label for="<%=txtPlaceOfBirth.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Place Of Birth" ID="lblPlaceOfBirth" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="270px" ID="txtPlaceOfBirth" MaxLength="255" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divLiveWith" runat="server">
                                                <label for="<%=ddlLiveWith.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Live With" ID="lblLiveWith" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList Font-Size="Small" Width="200px" runat="server" ID="ddlLiveWith">
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator ID="rfvLiveWith" ValidationGroup="StudentProfile" ControlToValidate="ddlLiveWith"
                                                            InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                            ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divParentStatus" runat="server">
                                                <label for="<%=ddlParentStatus.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Parent Status" ID="lblParentStatus" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlParentStatus">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divLegalCustobyName" runat="server">
                                                <label for="<%=txtLegalCustobyName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Legal Custoby Name" ID="lblLegalCustobyName" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="240px" ID="txtLegalCustobyName" MaxLength="240" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divFirstLanguage" runat="server">
                                                <label for="<%=ddlFirstLanguage.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Mother/First Language Speak" ID="Label21" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlFirstLanguage">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divHomeLanguage" runat="server">
                                                <label for="<%=ddlHomeLanguage.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Language Speak at Home" ID="lblHomeLanguage" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlHomeLanguage">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divNoOfSibling" runat="server">
                                                <label for="<%=ddlNoOfSibling.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="No. Of Sibling" ID="lblNoOfSibling" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlNoOfSibling">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divHobby" runat="server">
                                                <label for="<%=txtHobby.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Hobby" ID="lblHobby" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="270px" ID="txtHobby" MaxLength="240" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                        <td>
                                            <div class="row_curved" id="divDrivingLicenceType" runat="server">
                                                <label for="<%=ddlDrivingLicenceType.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Driving Licence Type" ID="lblDrivingLicenceType" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlDrivingLicenceType">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divDrivingLicenceNumber" runat="server">
                                                <label for="<%=txtDrivingLicenceNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Driving Licence No." ID="lblDrivingLicenceNumber" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="120px" ID="txtDrivingLicenceNumber" MaxLength="50" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divTravelDocType" runat="server">
                                                <label for="<%=ddlTravelDocType.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Travel Document Type" ID="lblTravelDocType" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlTravelDocType">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divTravelDocNumber" runat="server">
                                                <label for="<%=txtTravelDocNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Travel Document Number" ID="lblTravelDocNumber" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="220px" ID="txtTravelDocNumber" MaxLength="50" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divBloodGroup" runat="server">
                                                <label for="<%=ddlBloodGroup.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Blood Group" ID="lblBloodGroup" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlBloodGroup">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divMaritalStatus" runat="server">
                                                <label for="<%=ddlMaritalStatus.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Marital Status" ID="lblMaritalStatus" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlMaritalStatus">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divRaceCode" runat="server">
                                                <label for="<%=ddlRaceCode.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Race" ID="lblRaceCode" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlRaceCode">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divReligion" runat="server">
                                                <label for="<%=ddlReligion.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Religion" ID="lblReligion" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlReligion">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divNationality" runat="server">
                                                <label for="<%=ddlNationality.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Nationality" ID="lblNationality" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlNationality">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                        <AjaxToolKit:TabPanel ID="tpOtherSkill" runat="server" HeaderText="Contact" CssClass="menuHeader"
                            Visible="true" Enabled="false">
                            <HeaderTemplate>
                                <asp:Label ID="Label26" CssClass="menuHeader" runat="server">Other Skills</asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table cellpadding="3" cellspacing="3" width="100%">
                                    <tr>
                                        <td>
                                            <h3>
                                                Skill List</h3>
                                            <asp:GridView ID="grvStudentSkill" runat="server" DataKeyNames="SOSKey,UserAccountKey"
                                                EmptyDataText="No skill found." AutoGenerateColumns="False" DataSourceID="sqlDSSkillName"
                                                OnSelectedIndexChanged="grvStudentSkill_SelectedIndexChanged">
                                                <Columns>
                                                    <asp:BoundField DataField="SOSKey" HeaderText="SOSKey" InsertVisible="False" ReadOnly="True"
                                                        SortExpression="SOSKey" Visible="false" />
                                                    <asp:BoundField DataField="UserAccountKey" HeaderText="UserAccountKey" ReadOnly="True"
                                                        SortExpression="UserAccountKey" Visible="false" />
                                                    <asp:BoundField DataField="SkillName" HeaderText="Skill" SortExpression="SkillName" />
                                                    <asp:BoundField DataField="OrganizationName" HeaderText="Organization" SortExpression="OrganizationName" />
                                                    <asp:BoundField DataField="NoOfYear" HeaderText="# Year" SortExpression="NoOfYear" />
                                                    <asp:BoundField DataField="SkillLevel" HeaderText="Level" SortExpression="SkillLevel" />
                                                    <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description"
                                                        Visible="false" />
                                                    <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status" />
                                                    <asp:BoundField DataField="CreatedDateTime" HeaderText="CreatedDateTime" SortExpression="CreatedDateTime"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="ModifiedDateTime" HeaderText="Date/Time" SortExpression="ModifiedDateTime" />
                                                    <asp:CommandField ShowSelectButton="true" />
                                                </Columns>
                                            </asp:GridView>
                                            <asp:SqlDataSource ID="sqlDSSkillName" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                                SelectCommand="sprocStudentOtherSkillTableSelectList" SelectCommandType="StoredProcedure">
                                                <SelectParameters>
                                                    <asp:ControlParameter ControlID="lblUserAccountKey" Name="UserAccountKey" PropertyName="Text"
                                                        Type="Int32" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>
                                            <br />
                                            <asp:Label runat="server" ID="lblSOSKey" runat="server" Text="-1" Visible="false" />
                                            <div class="row_curved" id="div4" runat="server">
                                                <label for="<%=txtSkillName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Skill" ID="Label27" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Skill" Width="220px" ID="txtSkillName" MaxLength="255" runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvSkillName" ValidationGroup="StudentOtherSkill"
                                                            ControlToValidate="txtSkillName" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div6" runat="server">
                                                <label for="<%=txtSkillOrgName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Organization" ID="Label30" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Organization" Width="220px" ID="txtSkillOrgName" MaxLength="255"
                                                            runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div7" runat="server">
                                                <label for="<%=ddlSkillNoOfYear.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="No. Of year" ID="Label31" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList ToolTip="No. of Years" ID="ddlSkillNoOfYear" Width="240px" runat="server">
                                                            <asp:ListItem Text="Less than or equal 1 year" Value="1" />
                                                            <asp:ListItem Text="Less than or equal 2 years" Value="2" />
                                                            <asp:ListItem Text="Less than or equal 3 years" Value="3" />
                                                            <asp:ListItem Text="Less than or equal 4 years" Value="4" />
                                                            <asp:ListItem Text="Less than or equal 5 years" Value="5" />
                                                            <asp:ListItem Text="More than 5 years" Value="6" />
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div8" runat="server">
                                                <label for="<%=ddlSkillLevel.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Level" ID="Label32" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList ID="ddlSkillLevel" ToolTip="Level" Width="120px" runat="server">
                                                            <asp:ListItem Text="Beginner" Value="1" />
                                                            <asp:ListItem Text="Intermediate" Value="2" />
                                                            <asp:ListItem Text="Expert" Value="3" />
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div9" runat="server">
                                                <label for="<%=txtSkillRemarkDesc.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Remark/Descrption" ID="Label33" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Remark" Width="220px" ID="txtSkillRemarkDesc" MaxLength="255"
                                                            runat="server" TextMode="MultiLine" Rows="5" Columns="30" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div10" runat="server">
                                                <label for="<%=btnSaveSkill.ClientID%>" class="mand_red">
                                                    &nbsp;
                                                </label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:Button runat="server" ValidationGroup="StudentOtherSkill" ID="btnSaveSkill"
                                                            Text="Save" OnClick="btnSaveSkill_Click" OnClientClick="SubmitOnClientClick(this, 'StudentOtherSkill');" />
                                                        &nbsp;&nbsp;<asp:Button runat="server" ValidationGroup="StudentOtherSkillClear" ID="btnClearOtherSkill"
                                                            Text="New" OnClick="btnClearOtherSkill_Click" /><br />
                                                        <asp:Label runat="server" ID="lblSkillMessage" Font-Bold="true" ForeColor="Red" Text="" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <br />
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                        <AjaxToolKit:TabPanel ID="tpHistory" runat="server" HeaderText="Contact" CssClass="menuHeader"
                            Visible="true" Enabled="false">
                            <HeaderTemplate>
                                <asp:Label ID="Label28" CssClass="menuHeader" runat="server">School History</asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table cellpadding="3" cellspacing="3" width="100%">
                                    <tr>
                                        <td colspan="2">
                                            <h3>
                                                School History List</h3>
                                            <asp:GridView ID="grvSchoolHistory"  runat="server" AutoGenerateColumns="False" DataKeyNames="SLSHKey,UserAccountKey"
                                                DataSourceID="sqlDSSchoolHistory" OnSelectedIndexChanged="grvSchoolHistory_SelectedIndexChanged">
                                                <AlternatingRowStyle BackColor="LightBlue" />
                                                <Columns>
                                                    <asp:BoundField DataField="SLSHKey" HeaderText="SLSHKey" InsertVisible="False" ReadOnly="True"
                                                        SortExpression="SLSHKey" Visible="false" />
                                                    <asp:BoundField DataField="UserAccountKey" HeaderText="UserAccountKey" ReadOnly="True"
                                                        SortExpression="UserAccountKey" Visible="false" />
                                                    <asp:BoundField DataField="LastSchoolStudentID" HeaderText="Student ID"
                                                        SortExpression="LastSchoolStudentID" />
                                                    <asp:BoundField DataField="SchoolName" HeaderText="School Name" SortExpression="SchoolName" />
                                                    <asp:BoundField DataField="ProgramName" HeaderText="Program" SortExpression="ProgramName" />
                                                    <asp:BoundField DataField="Affiliation" HeaderText="Affiliation" SortExpression="Affiliation"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="FromStandardLevel" HeaderText="FromStandardLevel" SortExpression="FromStandardLevel"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="ToStandardLevel" HeaderText="ToStandardLevel" SortExpression="ToStandardLevel"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="StartDate" HeaderText="StartDate" SortExpression="StartDate"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="EndDate" HeaderText="EndDate" SortExpression="EndDate"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="LastGrade" HeaderText="LastGrade" SortExpression="LastGrade"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="SchoolWebsiteUrl" HeaderText="SchoolWebsiteUrl" SortExpression="SchoolWebsiteUrl"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="SchoolEmail" HeaderText="SchoolEmail" SortExpression="SchoolEmail"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="SchoolContact" HeaderText="Contact" SortExpression="SchoolContact"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="UnitNo" HeaderText="UnitNo" SortExpression="UnitNo" Visible="false" />
                                                    <asp:BoundField DataField="StreetName" HeaderText="StreetName" SortExpression="StreetName"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="CityCode" HeaderText="CityCode" SortExpression="CityCode"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="DistrictCode" HeaderText="DistrictCode" SortExpression="DistrictCode"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="TownshipCode" HeaderText="TownshipCode" SortExpression="TownshipCode"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="CountryCode" HeaderText="CountryCode" SortExpression="CountryCode"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="PostalCode" HeaderText="PostalCode" SortExpression="PostalCode"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="Remark" HeaderText="Remark" SortExpression="Remark" />
                                                    <asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" Visible="false" />
                                                    <asp:BoundField DataField="CreatedDateTime" HeaderText="CreatedDateTime" SortExpression="CreatedDateTime"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="ModifiedDateTime" HeaderText="Date/Time" SortExpression="ModifiedDateTime" />
                                                    <asp:CommandField ShowSelectButton="True" />
                                                </Columns>
                                            </asp:GridView>
                                            <asp:SqlDataSource ID="sqlDSSchoolHistory" runat="server" ConnectionString="<%$ ConnectionStrings:sis.dbconn %>"
                                                SelectCommand="sprocStudentLastSchoolHistoryTableSelectList" SelectCommandType="StoredProcedure">
                                                <SelectParameters>
                                                    <asp:ControlParameter ControlID="lblUserAccountKey" Name="UserAccountKey" PropertyName="Text"
                                                        Type="Int32" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label runat="server" ID="lblSLSHKey" Text="-1" Visible="false" />
                                            <div class="row_curved" id="divSLStudentID" runat="server">
                                                <label for="<%=txtSLStudentID.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Student ID" ID="Label29" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Student ID" Width="120px" ID="txtSLStudentID" MaxLength="50"
                                                            runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divSLSchoolName" runat="server">
                                                <label for="<%=txtSLSchoolName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="School/Org Name" ID="Label34" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="School/Organization Name" Width="220px" ID="txtSLSchoolName"
                                                            MaxLength="255" runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvSLSchoolName" ValidationGroup="StudentSchoolHistory"
                                                            ControlToValidate="txtSLSchoolName" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div5" runat="server">
                                                <label for="<%=txtSLProgramName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Program Name" ID="Label35" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Program Name" Width="220px" ID="txtSLProgramName" MaxLength="255"
                                                            runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvSLProgramName" ValidationGroup="StudentSchoolHistory"
                                                            ControlToValidate="txtSLProgramName" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div11" runat="server">
                                                <label for="<%=txtSLAffiliation.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Affiliation" ID="Label36" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="First Name" Width="240px" ID="txtSLAffiliation" MaxLength="255"
                                                            runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div12" runat="server">
                                                <label for="<%=txtSLStandardFrom.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Standar/Level From" ID="Label37" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Standar/Level From" Width="240px" ID="txtSLStandardFrom" MaxLength="50"
                                                            runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvSLStandardFrom" ValidationGroup="StudentSchoolHistory"
                                                            ControlToValidate="txtSLStandardFrom" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div13" runat="server">
                                                <label for="<%=txtSLStandardTo.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Standar/Level To" ID="Label38" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Standar/Level From" Width="240px" ID="txtSLStandardTo" MaxLength="50"
                                                            runat="server" />
                                                        <asp:RequiredFieldValidator ID="rfvSLStandardTo" ValidationGroup="StudentSchoolHistory"
                                                            ControlToValidate="txtSLStandardTo" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div14" runat="server">
                                                <label for="<%=txtSLStartDate.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Start Date" ID="Label39" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Start Date" Width="120px" ID="txtSLStartDate" MaxLength="50"
                                                            runat="server" />
                                                        <asp:ImageButton runat="Server" ID="ibnSLStartDate" ImageUrl="~/images/Calendar.gif"
                                                            AlternateText="Click to show calendar" ToolTip="Click to select calendar" CausesValidation="false" />
                                                        <AjaxToolKit:CalendarExtender ID="cceSLStartDate" runat="server" TargetControlID="txtSLStartDate"
                                                            Format="dd/MMM/yyyy" PopupButtonID="ibnSLStartDate" PopupPosition="TopLeft" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div15" runat="server">
                                                <label for="<%=txtSLEndDate.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="End Date" ID="Label40" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="End Date" Width="120px" ID="txtSLEndDate" MaxLength="50" runat="server" />
                                                        <asp:ImageButton runat="Server" ID="ibnSLEndDate" ImageUrl="~/images/Calendar.gif"
                                                            AlternateText="Click to show calendar" ToolTip="Click to select calendar" CausesValidation="false" />
                                                        <AjaxToolKit:CalendarExtender ID="cceSLEndDate" runat="server" TargetControlID="txtSLEndDate"
                                                            Format="dd/MMM/yyyy" PopupButtonID="ibnSLEndDate" PopupPosition="TopLeft" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div16" runat="server">
                                                <label for="<%=txtSLLastGrade.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Last Grade" ID="Label41" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="End Date" Width="120px" ID="txtSLLastGrade" MaxLength="50"
                                                            runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div25" runat="server">
                                                <label for="<%=btnSaveSchool.ClientID%>" class="mand_red">
                                                    &nbsp;</label>
                                                <span class="indicator">
                                                    <asp:Button runat="server" ID="btnSaveSchool" ValidationGroup="StudentSchoolHistory"
                                                        Text="Save" OnClick="btnSaveSchool_Click" OnClientClick="SubmitOnClientClick(this, 'StudentSchoolHistory');" />
                                                    &nbsp;&nbsp;<asp:Button runat="server" ID="btnClearStudendSchool" ValidationGroup="StudentSchoolHistoryClear"
                                                        Text="New" OnClick="btnClearStudendSchool_Click" />
                                                    <br />
                                                    <asp:Label runat="server" ID="lblSLSchoolMessage" Font-Bold="true" ForeColor="Red" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                        <td>
                                            <div class="row_curved" id="div17" runat="server">
                                                <label for="<%=txtSLWebsiteUrl.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Website Url" ID="Label42" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Website Url" Width="240px" ID="txtSLWebsiteUrl" MaxLength="255"
                                                            runat="server" />
                                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ValidationGroup="StudentSchoolHistory"
                                                            ControlToValidate="txtSLWebsiteUrl" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="<br />Invalid HTTP URL format." Text="" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div18" runat="server">
                                                <label for="<%=txtSLEmailAddress.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Email" ID="Label43" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Email Address" Width="240px" ID="txtSLEmailAddress" MaxLength="255"
                                                            runat="server" />
                                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ValidationGroup="StudentSchoolHistory"
                                                            ControlToValidate="txtSLEmailAddress" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="<br />Invalid email address format." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div19" runat="server">
                                                <label for="<%=txtSLContactNo.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Contact Phone" ID="Label44" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ToolTip="Contact Phone Number" Width="120px" ID="txtSLContactNo" MaxLength="255"
                                                            runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div20" runat="server">
                                                <label for="<%=txtSLUnitNo.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="UnitNo" ID="Label45" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtSLUnitNo" Width="120px" MaxLength="20" runat="server" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div21" runat="server">
                                                <label for="<%=txtSLStreetName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Street Name" ID="Label46" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtSLStreetName" Width="270px" MaxLength="255" runat="server" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div22" runat="server">
                                                <label for="<%=ddlSLCountry.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Country" ID="Label47" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:UpdatePanel runat="server" ID="uplSLCountry">
                                                        <ContentTemplate>
                                                            <asp:DropDownList Width="100px" runat="server" ID="ddlSLCountry" OnSelectedIndexChanged="ddlSLCountry_SelectedIndexChanged"
                                                                AutoPostBack="true">
                                                            </asp:DropDownList>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </span>
                                                <label for="<%=ddlSLDistrict.ClientID%>" style="width: 40px" class="mand_red">
                                                    <asp:Label runat="server" Text="State/Div" ID="Label48" /></label><span class="indicator">
                                                        <asp:UpdatePanel runat="server" ID="UpdatePanel3">
                                                            <ContentTemplate>
                                                                <asp:DropDownList Width="100px" runat="server" ID="ddlSLDistrict" OnSelectedIndexChanged="ddlSLDistrict_SelectedIndexChanged"
                                                                    AutoPostBack="true">
                                                                </asp:DropDownList>
                                                            </ContentTemplate>
                                                        </asp:UpdatePanel>
                                                    </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div23" runat="server">
                                                <label for="<%=ddlSLCity.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="City Name" ID="Label49" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:UpdatePanel runat="server" ID="UpdatePanel4">
                                                        <ContentTemplate>
                                                            <asp:DropDownList Width="100px" runat="server" ID="ddlSLCity">
                                                            </asp:DropDownList>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </span>
                                                <label for="<%=txtSLPostCode.ClientID%>" style="width: 40px" class="mand_red">
                                                    <asp:Label runat="server" Text="Postal" ID="Label50" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox Width="100px" ID="txtSLPostCode" MaxLength="50" runat="server" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div24" runat="server">
                                                <label for="<%=txtSLRemark.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Remark" ID="Label51" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtSLRemark" TextMode="MultiLine" Rows="5" Columns="30" runat="server" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                    </AjaxToolKit:TabContainer>
                    <div class="row_curved" style="background-color: #efefef;" id="divButton" runat="server">
                        <label>
                            &nbsp;</label>
                        <div class="field" style="width: 750px;">
                            <span class="indicator">
                                <asp:Button ID="btnSubmit" CssClass="button_normal_submit" Text="Save" ValidationGroup="StudentProfile"
                                    OnClientClick="SubmitOnClientClick(this, 'StudentProfile');" runat="server" OnClick="btnSubmit_Click" /></span>
                            &nbsp;&nbsp;<asp:Button runat="server" ID="btnNew" Text="New" OnClick="btnAddNewStudent_Click"
                                CssClass="button_normal_submit" />
                            &nbsp;&nbsp;<asp:Button runat="server" ID="btnUpdatePhoto" Visible="false" Text="Update Photo"
                                CssClass="button_normal_submit" OnClick="btnUpdatePhoto_Click" />
                            &nbsp;&nbsp;<asp:Button runat="server" ID="btnRegister" Visible="false" Text="Register"
                                CssClass="button_normal_submit" OnClick="btnRegisterStudent_Click" />
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="row_curved" id="divMessage" runat="server">
                        <label>
                            &nbsp;</label>
                        <div class="field">
                            <asp:Label ID="lblMessage" Font-Bold="true" ForeColor="Red" runat="server"></asp:Label>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </fieldset>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        //<![CDATA[
        SetSumitNormalButtonAttribute(document.getElementById('<%=btnSubmit.ClientID%>'));
        //]]>
    </script>

</asp:Content>
